<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:106:"E:\www\xshproject\www.wx.xuanlife.com.cn\public/../application/index\view\index\full_transaction_data.html";i:1529565781;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>炫生活服务平台历史交易数据查询</title>
    <link rel="shortcut icon" href="../../static/common/img/favicon.ico"/>
    <style>
        .fl{float:left;}
        .fr{float:right;}
        .clear{clear:both;}
        ul{padding:0;}
        li{list-style:none}
        a{text-decoration : none}

        /*修改bootstrap表格边框颜色*/
        .table-bordered th,
        .table-bordered td {
            border: 1px solid #bbb !important;
            text-align:center;
            font-size:16px;
        }
    </style>
    <link rel="stylesheet" href="../../static/common/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../static/common/css/bootstrap-datepicker.css">
    <link rel="stylesheet" href="../../static/index/css/menu.css">
</head>
<body>
    <ul id="navul" class="cl" style="top:30px;left:20px;">
        <li style="background: #006d96;">
            <a href="#">导航栏</a>
            <ul>
                <li><a href="<?php echo url('index/index/full_data_overview'); ?>">数据概览</a></li>
                <li><a href="<?php echo url('index/index/full_real_time'); ?>">实时数据</a></li>
                <?php if($_SESSION['think']['user']['username'] == 'xuanlife1'): ?>
                <li><a href="<?php echo url('index/index/full_member_data'); ?>">会员管理</a></li>
                <li><a href="<?php echo url('index/index/full_transaction_data'); ?>">交易数据</a></li>
                <?php endif; ?>
            </ul>
        </li>
    </ul>
    <section class="content-header">
        <h1 style="text-align:center;">
            炫生活服务平台历史交易数据查询
        </h1>
        <div style="margin: 10px 20px;float: right;">
            <form action="<?php echo url('index/index/full_transaction_data'); ?>" method="get">
                &nbsp;&nbsp;日期&nbsp;<input type="text" name="date" value="<?php echo $month1; ?>" class="form_datetime" id="search_begindate" style="height:30px;border-radius: 6px;border:1px solid #ccc;text-align:center;" readonly>
                <input type="submit" style="height:30px;width:50px;background:#169BD5;color:#fff;border:0;border-radius: 6px;text-align:center;" value="搜索">
            </form>
        </div>
    </section>
    <section class="content container-fluid">
        <table class="table table-hover table-bordered">
            <tr>
                <td class="col-md-3">会员用户</td>
                <td class="col-md-3">订单商家</td>
                <td class="col-md-2">订单金额</td>
                <td class="col-md-2">下单时间</td>
                <td class="col-md-2">付款时间</td>
            </tr>
            <?php if(is_array($res) || $res instanceof \think\Collection || $res instanceof \think\Paginator): $i = 0; $__LIST__ = $res;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
            <tr>
                <td><?php echo $val['user']; ?></td>
                <td>
                    <?php
                        echo '****'.str_replace(mb_substr($val['store_name'],0,2,'utf-8'),'',$val['store_name']);
                    ?>
                </td>
                <td><?php echo $val['order_price']; ?></td>
                <td><?php echo $val['order_time']; ?></td>
                <td><?php echo $val['pay_time']; ?></td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </table>
        <div>
            <span style="float:left;margin-top:20px;font-size: 16px;">
                本月总计交易金额：<?php echo $this_month_order_price; ?> 元
                <div style="color: blue;">
                    累计交易金额：<?php echo $all_order_price; ?> 元
                </div>
            </span>
            <span style="float:right;">
                <?php echo $page; ?>
            </span>
        </div>
    </section>
</body>
<script src="../../static/common/js/jquery.min.js"></script>
<!--菜单js-->
<script type="text/javascript" src="../../static/index/js-full/menu.js"></script>
<script src="../../static/common/js/bootstrap-datepicker.js"></script>
<script src="../../static/common/js/bootstrap-datepicker.zh-CN.js"></script>
<script type="text/javascript">
    $('.form_datetime').datepicker({
        format: 'yyyy-mm',
        autoclose: true,
        todayBtn: true,
        startView: 'year',
        minView:'year',
        maxView:'decade',
        language:  'zh-CN',
    });
</script>
</html>

